#pragma once
#include <iostream>
#include <string>
#include <vector>
#include <Windows.h>
class gameField;
#include "collidable.h"
using namespace std;
class gameField
{
public:
	gameField(void);
	gameField(int lenx, int leny);
	COORD getFieldSize();
	~gameField(void);
	void reDraw();
	void addObject(collidable *c);
	int removeObject(collidable *c);
	int moveObject(collidable *c, int i);
	int getLOS(int xpos, int ypos);

private:
	int collidableField[100][100];
	int LOSField[100][100];
	int length_x;
	int length_y;
	vector<collidable *> collidables;
	void updateLOS(collidable *c);
	void updateCollidableField();
	void drawGameBoard();
};

